Repository navigation
chore(contracts): remove dead exports - #4707
Merged
Merged
Conversation
Un-export sampleGestureOffsets, interpolateGesturePoint, and ANDROID_CAPTURE_FAILURE_REASONS: no workspace file or published entry point references them outside their own modules. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Contributor
Size Report
Startup median (7 runs, lower is better):
|
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Member
Author
|
I found no problems in d49eca8. The removed exports have no remaining references anywhere in the tree. All 18 checks pass and none fail. No conflicts. Nothing else needs to happen before merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes three fallow-flagged dead exports from
@agent-device/contracts(2 files touched):packages/contracts/src/gesture-plan.ts—sampleGestureOffsets,interpolateGesturePointpackages/contracts/src/android-snapshot-quality.ts—ANDROID_CAPTURE_FAILURE_REASONSEach symbol was referenced only inside its own module, so the
exportkeyword was dropped and the declarations became module-private (no behavior change; exported types likeAndroidCaptureFailureReasonare unchanged). A workspace-wide grep (src, packages, scripts, test, tools, website, docs, .github, skills, including string/dynamic references) found no external reference; the published root./contractsexport (dist/src/contractsfromsrc/sdk/contracts.ts) andsrc/sdk/index.tsdo not re-export them, anddist/contains no occurrence of any of the three symbols.pnpm check:production-exportspasses and does not require them, so they are provably not public API.Validation
Tested SHA: d49eca8
npx fallow dead-code --config .fallowrc.json— the three symbols no longer listed (0 matches; unused-export count 10 → 7, remainder pre-existing in other packages)pnpm lint— 0 warnings, 0 errors (oxlint, 5230 files)pnpm format:check— all files use the correct formatpnpm typecheck— pass (tsc -b)pnpm check:production-exports— "No issues found"pnpm check:fallow— "No issues in 2 changed files"npx vitest run --project unit-core packages/contracts— 94 files / 840 tests passednpx vitest run --project unit-coreon all other test files importing gesture-plan or android-snapshot-quality (platform-android, platform-apple, platform-linux, platform-harmonyos, provider-webdriver, daemon, maestro, src/sdk, repo-guards, layering) — 90 files / 1075 tests passedCI obligations: the serialized gate stage validates the pushed head (d49eca8); this PR is not merged and CI is not awaited here.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.